package cn.iune.erp.purchase;

import java.sql.Date;
import java.text.ParseException;
import java.util.List;
import com.alibaba.fastjson.JSONObject;

public interface IPurchaseOrderDetailService {

	List<PurchaseOrderDetail> getAll();

	PurchaseOrderDetail getByID(String fID);

	void delete(String fID);

	List<PurchaseOrderDetail> getByStorageNo(String storageNo, String factoryNo, String enterpriseNo);

	JSONObject save(JSONObject object) throws ParseException;

	int confirm(String fID);

	int active(String fID);

	int confirm(PurchaseOrderDetail sod);

	int active(PurchaseOrderDetail sod);

	int confirmByMasterID(String fMasterID);

	int activeByMasterID(String fMasterID);

	int open(String fID);

	int close(String fID);

	int open(PurchaseOrderDetail sod);

	int close(PurchaseOrderDetail sod);

	int openByMasterID(String fMasterID);

	int closeByMasterID(String fMasterID);

	//审核通过，改变审核状态为confirm
	int agreeIt(PurchaseOrderDetail s);

	//审核通过，改变审核状态为confirm
	int agreeIt(String fID, Date confirmDate);

	//审核拒绝，改变审核状态为active
	int unAgree(PurchaseOrderDetail s);

	//审核拒绝，改变审核状态为active
	int unAgree(String fID);

	int agreeItByMasterID(String fMasterID);

	int unAgreeByMasterID(String fMasterID);


	List<PurchaseOrderDetail> getByMasterID(String fMasterID);

	PurchaseOrderDetail getByNo(String stockNo, String serialNo, String enterpriseNo);



}